﻿<?php
session_start();
//kiem tra co dang nhap hay khong
include("ktdangnhap.php");
?>
<html>
<head>
<title>Xác nhận kiểm tra</title>
<link rel="stylesheet" href="menu.css" type="text/css">
<link rel="stylesheet" href="kt.css" type="text/css">
</head>
<body>
<?php
//lay menu


if(isset($_GET["id"]))
{
	include("menu.php");
	$id=$_GET["id"];
	//ket noi voi co so du lieu
	include("connect.php");
	//cau lenh sql
		echo"<div align='center'>";
		$sql="select * from KiemTra where MA_KT=$id";
		$query=mysql_query($sql);
		$row=mysql_fetch_array($query);
		echo "<p>Bạn có muốn kiểm tra bài ".$row["TEN_KT"]."</p><br>";
		echo"<a href='kiemtra.php?id=".$row["MA_KT"]."'><input type='button' value='Xác Nhận'></a>";
		echo"<a href='index.php'><input type='button' value='Trở về trang chủ'></a>";
		echo"</div>";
}
else
{
	header("location:index.php");
}
?>
</body>
</html>